import request from '../../../utils/request';

export const comData = query => {
    return request({
        url: '/api/stand/yun/serialManage/doMain',
        method: 'post',
        // url: './json/comlist.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/upp/serialManage/doAdd',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
//根据userAcct 判断该用户是否已存在
export const selectOne = query => {
    return request({
        url: '/api/upp/serialManage/doView',
        method:'post',
        // url:'./json/com.json',
        // method: 'get',
        params: query
    });
};
//删除用户
export const doDelete = query => {
    return request({
        url: '/api/upp/serialManage/doDelete',
        method:'delete',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//启动
export const doStart = query => {
    return request({
        url: '/api/upp/serialManage/doStart',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//停止
export const doEnd = query => {
    return request({
        url: '/api/upp/serialManage/doStop',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//修改编辑
export const doUpdate = query => {
    return request({
        url: '/api/upp/serialManage/doUpdate',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//修改编辑
export const getAllSerial = query => {
    return request({
        url: '/api/upp/serialManage/getAllSerial',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};



